﻿<%@ Page Language="C#" MasterPageFile="~/admin.master" AutoEventWireup="true" Inherits="MediaMonitor.Admin.ChangeEmailsForNewCommercial"
    Theme="default" Title="Change New Commercial Email Address" CodeBehind="ChangeEmailsForNewCommercial.aspx.cs" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script src="../rad-scripts/rad.js" type="text/javascript"></script>
    </telerik:RadCodeBlock>
    <style>
        .alert-success
        {
            background-image: linear-gradient(to bottom, #DFF0D8 0px, #C8E5BC 100%);
            background-repeat: repeat-x;
            border-color: #B2DBA1;
        }

        .alert
        {
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
            text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .alert-success
        {
            background-color: #DFF0D8;
            border-color: #D6E9C6;
            color: #3C763D;
        }

        .alert
        {
            border: 1px solid rgba(0, 0, 0, 0);
            border-radius: 4px;
            margin-bottom: 20px;
            padding: 15px;
        }

        .alert-danger
        {
            background-image: linear-gradient(to bottom, #F2DEDE 0px, #E7C3C3 100%);
            background-repeat: repeat-x;
            border-color: #DCA7A7;
        }

        .alert-danger
        {
            background-color: #F2DEDE;
            border-color: #EBCCD1;
            color: #A94442;
        }
         select
        {
            background-color: #FFFFFF;
            border: 1px solid #BCBCBC;
            color: #343434;
            display: inline;
            font-size: 12px;
            height: 30px!important;
            margin: 3px 3px 3px 0;
            padding: 3px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Body" runat="Server">
    <table>
        <tr>
            <td colspan="3" style="height: 70px;">
                <div runat="server" id="divsuccess" visible="false" class="alert alert-success">
                    <strong>You successfully saved these email addresses.</strong>
                </div>
                <div runat="server" id="divError" visible="false" class="alert alert-danger">
                    <strong> Sorry! There is some problem. Please try again.</strong>
                </div>
                <asp:HiddenField runat="server" ID="hdnID" />
            </td>
        </tr>
        <tr>
            <td><asp:Label runat="server" ID="lblMediaType" Text="Media Type"></asp:Label></td>
            <td>
                 <asp:DropDownList ID="lstMediaType" Width="142px" runat="server"
                                        AutoPostBack="true" DataValueField="MediaTypeCode"
                                        DataTextField="MediaTypeName"
                                        OnSelectedIndexChanged="lstMediaType_SelectedIndexChanged" />
            </td>
            <td>&nbsp;</td>
            
        </tr>
        <tr>
            <td style="width: 150px;">
                <asp:Label runat="server" ID="lblEmailID1" Font-Size="12px" AssociatedControlID="txtEmailID1" Text="Email Address 1:"></asp:Label></td>
            <td>
                <asp:TextBox runat="server" ID="txtEmailID1" MaxLength="300" ValidationGroup="save"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="reqTxtEmailID1" runat="server" ValidationGroup="save" ErrorMessage="Please enter a email address" ControlToValidate="txtEmailID1" Display="Dynamic"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="regexEmailValid1" runat="server" ValidationGroup="save" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmailID1" ErrorMessage="Invalid Email Format" Display="Dynamic"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" ID="lblEmailID2" Font-Size="12px" Text="Email Address 2:" AssociatedControlID="txtEmailID2"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEmailID2" ValidationGroup="save" MaxLength="300"></asp:TextBox>
            </td>
            <td>
                
                <asp:RegularExpressionValidator ID="regexEmailValid2" runat="server" ValidationGroup="save" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmailID2" ErrorMessage="Invalid Email Format" Display="Dynamic"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" ID="lblEmailID3" Font-Size="12px" Text="Email Address 3:" AssociatedControlID="txtEmailID3"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEmailID3" ValidationGroup="save" MaxLength="300"></asp:TextBox>
            </td>
            <td>
                
                <asp:RegularExpressionValidator ID="regexEmailValid3" runat="server" ValidationGroup="save" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmailID3" ErrorMessage="Invalid Email Format" Display="Dynamic"></asp:RegularExpressionValidator>

            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" ID="lblEmailID4" Font-Size="12px" Text="Email Address 4:" AssociatedControlID="txtEmailID4"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEmailID4" ValidationGroup="save" MaxLength="300"></asp:TextBox>
            </td>
            <td>
                
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ValidationGroup="save" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmailID4" ErrorMessage="Invalid Email Format" Display="Dynamic"></asp:RegularExpressionValidator>

            </td>
        </tr>
        <tr>
            <td>
                <asp:Label runat="server" ID="lblEmailID5" Font-Size="12px" Text="Email Address 5:" AssociatedControlID="txtEmailID5"></asp:Label>
            </td>
            <td>
                <asp:TextBox runat="server" ID="txtEmailID5" ValidationGroup="save" MaxLength="300"></asp:TextBox>
            </td>
            <td>
                
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ValidationGroup="save" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmailID5" ErrorMessage="Invalid Email Format" Display="Dynamic"></asp:RegularExpressionValidator>

            </td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>
                <asp:ImageButton ID="btnChangeEmail" ValidationGroup="save" runat="server" SkinID="submit"
                    OnClick="btnChangeEmail_Click" /></td>
            <td>&nbsp;</td>
        </tr>
    </table>
</asp:Content>
